package com.yjetms.repository;

import com.yjetms.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface UserRepository extends JpaRepository<User,Integer>{
    @Query
    User findByUsername(String username);
    @Query
    User findByUsernameAndPassword(String username, String password);
}
